global class DeleteLogs implements Database.Batchable<sObject> {
    
    global DeleteLogs() {
    }
    
    global Database.QueryLocator start(Database.BatchableContext BC) {
        return Database.getQueryLocator([select Id from Log__c where CreatedDate >: Date.newInstance(2017,5,16)]);
    }

    global void execute(Database.BatchableContext BC, List<sObject> s) {
        // 其他逻辑
        Delete s;
    }
    
    global void finish(Database.BatchableContext BC) {
        
    }
    
}